package com.quick.develop.flowable.mapper;


import com.quick.develop.flowable.domain.instance.BpmProcessInstancePageItemRespVO;
import org.apache.ibatis.annotations.MapKey;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * @author junyuan.liu
 * @description: TODO
 * @date 2022/6/1 8:54
 */
public interface BpmProcessInstanceMapper {
    int setRuInstStartUser(@Param("userId")String userId, @Param("procInstId") String procInstId);
    int setHiInstStartUser(@Param("userId")String userId, @Param("procInstId") String procInstId);
    
    int setHiInstBusinessKey(@Param("businessKey")String businessKey, @Param("procInstId") String procInstId);
    
    @MapKey("id")
    List<Map<String, String>> getRuVariableStr(@Param("name") String name, @Param("executionId") String executionId);

    
    /**
     * @Description: 获取业务查询的流程信息
     * @Param: [page, key, status, keys]
     * @return: java.util.List<com.quick.develop.flowable.domain.instance.BpmProcessInstancePageItemRespVO>
     * @Author HJF
     * @Date 2023/7/19 15:44
     */
    List<BpmProcessInstancePageItemRespVO> getDocProcessData(@Param("keys") List<String> keys);
}
